// 1. 导入 React
import React from 'react';
//2. 导入 ReactDOM
// import ReactDOM from 'react-dom/client';
import {createRoot} from 'react-dom/client';
//3. 声明一个组件
import App from './App';
import { BrowserRouter, HashRouter } from 'react-router-dom';
//4. 创建根节点
let root = createRoot(document.querySelector('#root'));
//5. 渲染
root.render( <App /> ); 